<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h3 th:text="${userModel.title}"></h3>
<form action="/user/insert" method="post">
<input type="hidden" name="id" th:value="*{id}"/>
姓名:<input type="text" placeholder="姓名" name="name" th:value="*{name}" /></br>
年龄:<input type="text" placeholder="年龄" name="age" th:value="*{age}" /></br>
手机号:<input type="text" placeholder="手机号" name="tel" th:value="*{tel}" /></br>
性别:<select name="sex" th:value="*{sex}">
	<option value="男">男</option>
	<option value="女">女</option>
</select>
班级:<select name="room_id" th:value="*{room_id}">
    <option value="1">2班</option>
    <option value="2">3班</option>
</select>
选课:<select  name="course_id" th:value="*{course_id}">
	<option value="1">语文</option>
	<option value="2">数学</option>
	<option value="2">英语</option></select></br>
选择老师:<input class="tea" type="checkbox" name="teacherIds"  th:each="teacher : ${userModel.teachers}"
			th:value="${teacher.id}" th:text="${teacher.name}"/><br>
<input type="submit" value="提交"/> <input style="margin-left:30px" type="button" value="取消"/>
</form>

</body>
</html>